package org.example.gradle.sharding.jdbc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableFeignClients(basePackages = "org.example.gradle.sharding.jdbc.feigns")
@ComponentScan(value = {"gradle.common","org.example.gradle.sharding.jdbc"})
@MapperScan(value="org.example.gradle.sharding.jdbc.mapper")
public class GradleShardingJdbcDemoApplication {

    public static void main(String[] args) {
//        HikariDataSource
        SpringApplication.run(GradleShardingJdbcDemoApplication.class, args);
    }

}
